// 登录
export interface loginForm {
  username: string
  password: string
}

interface dataType {
  createTime: string,
  id: number,
  name: string,
  password: string,
  phone: string,
  roleName: string,
  updateTime: string,
  username: string
}

export interface loginResponseData {
  code: number
  data: string ,
  message: string,
  ok: boolean
}
// 用户信息
interface userinfo {
  id: number,
  createTime: string,
  updateTime: string,
  username: string,
  password: string,
  name: string,
  phone: string|null,
  roleName: string[] | null
}
interface usertype {
  avatar: string,
  buttons: string[],  
  name: string,
  roles: string[],
  routes: string[],
}
export interface userResponseData {
  code: number
  data: usertype,
  message: string,
  ok: boolean
}
